package wangxiaotao.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 普通用户修改订单
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserOrderVO implements Serializable {
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Integer id;

    /**
     * 订单的用户留的姓名
     */
    @NotBlank(message = "订单姓名不能为空")
    private String orderName;

    /**
     * 订单的用户留的电话
     */
    @NotBlank(message = "订单电话不能为空")
    private String orderPhone;

    private String orderEmail;

    private String orderNote;

}
